package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.Video;

import java.util.List;

public interface VideoApi {

    //保存小视频
    void saveVideo(Video video);

    //查看小视频
    List<Video> queryVideo(Long uid ,Integer page, Integer pagesize);

    //根据id查询 Video对象
    Video queryVideoById(String id);

    //关注用户
    Boolean followUser(Long userId, Long followUserId);

    //取消关注用户
    Boolean disFollowUser(Long userId, Long followUserId);

    //查询用户是否关注某个用户
    Boolean isFollowUser(Long userId, Long followUserId);
}
